package cn.edu.neu.service.impl;

import cn.edu.neu.dao.HomeDao;
import cn.edu.neu.model.Category;
import cn.edu.neu.model.Goods;
import cn.edu.neu.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeServiceImpl implements HomeService {
    @Autowired
    public HomeDao dao;
    @Override
    public List<Goods> getHotList() {
        return dao.getHotList();
    }

    @Override
    public List<Category> getCateList() {
        return dao.getList();
    }

    @Override
    public List<Goods> getGoodsByCateID(String cateId) {
        return dao.getListByCateID(cateId);
    }
}
